﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using ModelLayer;
using ModelLayer.ObraDesligadaTableAdapters;
namespace PresentationLayer
{
    public partial class ModoDesligadoFrom : Form
    {
        public ModoDesligadoFrom()
        {
            InitializeComponent();
        }

        private void carDados_Click(object sender, EventArgs e)
        {
            this.textofic.SelectAll();
            ApplicationData.obra = new ObraTableAdapter().GetData(Int32.Parse(this.textofic.SelectedText));
            ApplicationData.obraCont = new ObraContemTableAdapter().GetData(Int32.Parse(this.textofic.SelectedText));
            ApplicationData.resr = new ReservaTableAdapter().GetData(Int32.Parse(this.textofic.SelectedText));
            ApplicationData.oficina = new OficinaTableAdapter().GetData(Int32.Parse(this.textofic.SelectedText));
            this.Close();
        }
    }
}